package com.cloud.rou.im.msg;

import com.cloud.rou.common.id.IdGenerator;
import com.cloud.rou.im.msg.converter.ChatToAckConverter;
import com.cloud.rou.im.msg.enumtype.AckType;
import lombok.*;

/**
 * <p>
 *     the ack msg
 * </p>
 *
 * @author GaoShuangWen
 */
@Getter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class AckMsg implements Msg {

    /**
     * 消息id
     */
    private final Long msgId = IdGenerator.id();

    /**
     * 发送时间
     */
    private final Long createTime = System.currentTimeMillis();

    /**
     * 接收者类型
     */
    private byte recipientType;

    /**
     * 发送者userId
     */
    private Long senderId;

    /**
     * 接收者userId
     */
    private Long recipientId;


    /**
     * 消息类型
     */
    private AckType ackType;

    /**
     * 消息体
     */
    private Long ackMsgId;




}
